public class Test {
    public static void main(String[] args) {
        BinaryTree.TreeNode root = new BinaryTree.TreeNode(1);
        BinaryTree.TreeNode root1 = new BinaryTree.TreeNode(2);
        BinaryTree.TreeNode root2 = new BinaryTree.TreeNode(3);
        BinaryTree.TreeNode root3 = new BinaryTree.TreeNode(4);
        BinaryTree.TreeNode root4 = new BinaryTree.TreeNode(15);
        BinaryTree.TreeNode root5 = new BinaryTree.TreeNode(16);
        BinaryTree.TreeNode root6 = new BinaryTree.TreeNode(17);
        BinaryTree.TreeNode root7 = new BinaryTree.TreeNode(18);
        BinaryTree.TreeNode root8 = new BinaryTree.TreeNode(19);

        root.left = root1;
        root.right = root2;
        root1.left = root3;
        root2.right = root4;
        root4.left = root5;
        root4.right = root6;
        root3.left = root7;
        root7.right = root8;

        BinaryTree binaryTree = new BinaryTree();
/*        binaryTree.levelOrder(root);
        System.out.println(binaryTree.getNodesNor(root));*/
        //System.out.println(binaryTree.getLeavesNodesNor(root));
        //System.out.println(binaryTree.getHeightNor(root));
        System.out.println(binaryTree.getKNodes(root, 4));
    }
}
